﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;



namespace Spectrum
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 地震波数据管理
        /// </summary>
        //private GroundMotionManage GMManage { set; get; }

        /// <summary>
        /// 测试按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void TestButton_Click(object sender, EventArgs e)
        {
            //获得数据
            //var goundMotionManage = GroundMotionManage.GetMotionManage( FileType.GMNormal);
            //输出都文件夹
            //goundMotionManage.GMToFile();
        }

        /// <summary>
        /// 清空多余文件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DeleteButton_Click(object sender, EventArgs e)
        {
            //GroundMotionManage.DeleteFiles();
        }

        /// <summary>
        /// 读取Json地震波
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void GMJsonButton_Click(object sender, EventArgs e)
        {
            //获得数据
            //this.GMManage = GroundMotionManage.GetMotionManage(FileType.GMJson);
        }

        /// <summary>
        /// 求解反应谱
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Spectrum5Button_Click(object sender, EventArgs e)
        {
            //求解反应谱
            //this.GMManage.MotionToSpectrum(0.05,4);
        }

        /// <summary>
        /// 读取反应谱信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ReadSpectButton_Click(object sender, EventArgs e)
        {
            //获得数据
            //this.GMManage = GroundMotionManage.GetMotionManage(FileType.GMSpecturmJson);
        }

        /// <summary>
        /// 求解反应谱0.02阻尼比
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Spectrum2Button_Click(object sender, EventArgs e)
        {
            //求解反应谱
            //this.GMManage.MotionToSpectrum(0.02, 4);
        }
    }
}
